KtorStandartKeyValueRepo

class KtorStandartKeyValueRepo<K, V>(baseUrl: String, baseSubpart: String, unifiedRequester: UnifiedRequester, keySerializer: KSerializer<K>, valueSerializer: KSerializer<V>, valueNullableSerializer: KSerializer<V?>) : StandardKeyValueRepo<K, V> , ReadStandardKeyValueRepo<K, V> , WriteStandardKeyValueRepo<K, V>

Constructors

Link copied to clipboard
fun <K, V> KtorStandartKeyValueRepo(baseUrl: String, baseSubpart: String, client: <ERROR CLASS> = HttpClient(), keySerializer: KSerializer<K>, valueSerializer: KSerializer<V>, valueNullableSerializer: KSerializer<V?>, serialFormat: StandardKtorSerialFormat = standardKtorSerialFormat)

Functions

Link copied to clipboard
open suspend override fun contains(key: K): Boolean
Link copied to clipboard
open suspend override fun count(): Long
Link copied to clipboard
open suspend override fun get(k: K): V?
Link copied to clipboard
open suspend override fun keys(pagination: Pagination, reversed: Boolean): PaginationResult<K>
open suspend override fun keys(v: V, pagination: Pagination, reversed: Boolean): PaginationResult<K>
Link copied to clipboard
open suspend override fun set(toSet: Map<K, V>)
Link copied to clipboard
open suspend override fun unset(toUnset: List<K>)
Link copied to clipboard
open suspend override fun unsetWithValues(toUnset: List<V>)
Link copied to clipboard
open suspend override fun values(pagination: Pagination, reversed: Boolean): PaginationResult<V>

Properties

Link copied to clipboard
open override val onNewValue: Flow<Pair<K, V>>
Link copied to clipboard
open override val onValueRemoved: Flow<K>